﻿@using News.Models;
@using News.Models.Database;
@{
	NewsContext _newsContext = new NewsContext();
	var list = _newsContext.NewsPosts.Where(x => x.NewsPId == Public.now_newsId).ToList();
}
<div id="main">
@{
	foreach (var item in list)
	{
		<h1 class="detail-title">@item.Title</h1>
		<div class="post_info">
			<span>@item.NewsTime</span>　来源: <span>@item.NewsAdd</span>
		</div>
		<div class="post_content">@item.Content</div>
	}
}
</div>
